import { Component, ViewEncapsulation } from '@angular/core';

@Component({
    selector     : 'example-msg-success',
    template     : `
        <div class="weui-msg">
            <div class="weui-msg__icon-area"><i class="weui-icon-success weui-icon_msg"></i></div>
            <div class="weui-msg__text-area">
                <h2 class="weui-msg__title">申请成功</h2>
                <p class="weui-msg__desc">
                    申请成功，请等待审核
                </p>
            </div>
            <div class="weui-msg__opr-area">
                <p class="weui-btn-area">
                    <a (click)="close()" class="weui-btn weui-btn_primary">退出</a>
                </p>
            </div>
        </div>
    `,
    encapsulation: ViewEncapsulation.None,
})
export class MsgSuccessComponent
{

    close()
    {
        WeixinJSBridge.invoke('closeWindow', {}, function ( res )
        {
        });
    }
}
